package com.andy.blog.dal.service.impl;

import com.andy.blog.dal.domain.SysRoleMenuDO;
import com.andy.blog.dal.mapper.SysRoleMenuMapper;
import com.andy.blog.dal.service.SysRoleMenuDalService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by andy on 2023/9/16 15:16
 */
@Service
public class SysRoleMenuDalServiceImpl implements SysRoleMenuDalService {

    @Resource
    private SysRoleMenuMapper sysRoleMenuMapper;


    @Override
    public int deleteRoleMenuByRoleId(Long roleId) {
        return sysRoleMenuMapper.deleteRoleMenuByRoleId(roleId);
    }

    @Override
    public int batchRoleMenu(List<SysRoleMenuDO> roleMenuList) {
        return sysRoleMenuMapper.batchRoleMenu(roleMenuList);
    }
}
